<%-- 
    Document   : role
    Created on : 2016-7-1, 14:13:07
    Author     : 52461
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@include file="../link.jsp"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
        <style>
        * { margin:0; padding:0;font-size:18px;}
        body { margin:0; padding:0;  font-family:"微软雅黑";}
        table td { padding:3px 1px;}
        .title { font-size:24px; text-align:center; width:40%;}
        .check_info th { border-bottom:1px #666 solid; padding-bottom:5px;}
        .check_info td,th{ padding-left:20px;}
        </style>
    </head>
    <body  ng-app="jyjgManager" ng-controller="jyjgCtrl">
        <table width="1000px" style=" margin:0 auto;" cellpadding="0" cellspacing="0">
	<tr>
    	<td colspan="2">
        	<div style="text-align: center">
                <h3><%=DataCache.getIntance().getConfig().get("hospitalName")%>检验报告单</h3>
                </div>
        </td>
    </tr>
    <tr>
    	<td colspan="2">
        	<table cellpadding="0" cellspacing="0" width="100%" style=" border-bottom:1px #666 solid;">
            	<tr>
                    <td align="right" width="80px">姓名：</td>
                    <td contenteditable="true" align="left" width="100px">{{info.PATIENTNAME}}</td>
                    <td align="right" width="80px">病历号：</td>
                    <td contenteditable="true" align="left" width="100px">{{info.PATIENTID}}</td>
                    <td align="right" width="80px">科室：</td>
                    <td contenteditable="true" align="left" width="100px">{{info.KSMC}}</td>
                    <td align="right" width="80px">样本号：</td>
                    <td contenteditable="true" align="left" width="120px">{{ybh}}</td>
                </tr>
                <tr>
                    <td align="right" width="100px">性别：</td>
                    <td contenteditable="true" align="left" width="100px">{{info.SEX}}</td>
                    <td align="right" width="100px">病房号：</td>
                    <td contenteditable="true" align="left" width="100px"></td>
                    <td align="right" width="100px">送检医生：</td>
                    <td contenteditable="true" align="left" width="100px">{{info.SJYS}}</td>
                    <td align="right" width="100px">标本类型：</td>
                    <td contenteditable="true" align="left" width="100px">{{info.SAMPLEDESCRIBE}}</td>
                </tr>
                <tr>
                    <td align="right" width="100px">年龄：</td>
                    <td contenteditable="true" align="left" width="100px">{{info.AGE}}</td>
                    <td align="right" width="100px">床号：</td>
                    <td contenteditable="true" align="left" width="100px">{{info.BED_NO}}</td>
                    <td align="right">机器型号：</td>
                    <td contenteditable="true" align="left">{{jqType}}</td>
                    <td align="right" width="100px">检验项目：</td>
                    <td contenteditable="true" align="left" width="100px">{{info.EXAMINAIM}}</td>
                </tr>
            </table>
        </td>
    </tr>
    <tr style="border-bottom:1px #666 solid;height:1200px;">
    	<td valign="top"  style=" padding-right:0;">
        	<table cellpadding="0" cellspacing="0" width="100%" class="check_info">
            	<thead>
                    <tr>
			<th align="left">序号</th>
                        <th align="left">项目名称</th>
                        <th align="left">结果</th>
                        <th align="left">单位</th>
                        <th align="left">参考范围</th>
                    </tr>
                </thead>
                <tbody>
                    <tr ng-repeat="re in results">
			<td>{{$index+1}}</td>
                    	<td>{{re.CHINESENAME}}</td>
                        <td>{{re.TESTRESULT}}</td>
                        <td>{{re.UNIT}}</td>
                        <td>{{re.fanwei}}</td>
                    </tr>
                </tbody>
            </table>
        </td>
              
    </tr>
    <tr>
        <td colspan="2">
             <table>
                <tr>
                    <td  align="right" width="100px">备注： </td>
                    <td  colspan="5" contenteditable="true" align="left" width="300px">此结果仅对本份检验标本负责</td>
                    <td align="right"></td>
                    <td contenteditable="true" align="left" width="100px"></td>
                    <td align="right"></td>
                    <td contenteditable="true" align="left" width="100px"></td>
                    <td  colspan="" align="right">审核人：</td>
                    <td  colspan="2" contenteditable="true" align="left" width="100px">{{shenhe}}</td>
                </tr>
                <tr>
                    <td colspan="2" align="right" width="80px">送检时间：</td>
                    <td  colspan="2" contenteditable="true" align="left" width="300px">{{info.SJSJ}}</td>
                    <td align="right"></td>
                    <td contenteditable="true" align="left" width="100px"></td>
                    <td align="right"></td>
                    <td contenteditable="true" align="left" width="100px"></td>
                    <td align="right"></td>
                    <td contenteditable="true" align="left" width="100px"></td>
                    <td align="right">打印日期：</td>
                    <td contenteditable="true" align="left" width="200px">{{date}}</td>
                </tr>
            </table>
        </td>
        
    </tr>
	
</table>
<!--        
                <div class="col-lg-12">
                    <div class="col-lg-4">打印日期：2013-09-11</div>
                     <div class="col-lg-4"></div>
                      <div class="col-lg-4">审核人：管理员</div>
                </div>
                <div class="col-lg-12">
                    <div class="col-lg-4">此结果仅对本份检验标本负责</div>
                     <div class="col-lg-4">备注</div>
                      <div class="col-lg-4">机器型号：00013</div>
                </div>-->
</body>
</html>
<script>
    angular.module("jyjgManager", [])
            .controller("jyjgCtrl", function ($scope) {
                $scope.results = JSON.parse(localStorage.results);
                $scope.info = JSON.parse(localStorage.info);
                $scope.ybh=localStorage.ybh;
                $scope.date=localStorage.date;
                $scope.shenhe=localStorage.shenhe;
                $scope.jqType=localStorage.jqType;
//                window.print();
                
        })

</script>
